import 'package:flutter/widgets.dart';
import 'package:website.core/core/presentation/localization/translation.dart';
import 'package:website.core/core/presentation/theme/theme.dart';
import 'package:website.core/core/presentation/widgets/app_button.dart';

class HeaderAngryWordsProCompactButton extends StatelessWidget {
  const HeaderAngryWordsProCompactButton({
    required this.onPressed,
    Key? key,
  }) : super(key: key);

  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return AppButton(
      color: CoreTheme.of(context).primaryColor,
      padding: const EdgeInsets.symmetric(
        horizontal: 12,
      ),
      pressedOpacity: 0.6,
      onPressed: onPressed,
      borderRadius: BorderRadius.circular(14),
      child: SizedBox(
        height: 28,
        child: Center(
          child: Text(
            CoreTranslation.of(context).headerAngryWordsProCompactButtonTitle,
            style: CoreTheme.of(context).textTheme.headerAngryWordsProCompactButtonTitle,
            textAlign: TextAlign.center,
          ),
        ),
      ),
    );
  }
}
